package org.example.service.impl;

import org.example.domain.City;
import org.example.mapper.CityMapper;
import org.example.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-12-05 22:34
 */
@Service
public class CityServiceImpl implements ICityService {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> findByProvinceId(Long provinceId) {
        return cityMapper.selectByProvinceId(provinceId);
    }

    @Override
    public List<City> selectAllCity() {
        return cityMapper.selectAllCity();
    }
}
